STEP 9: Right now, our square always turns red. Let's use the user's input.
We can use our red, green, and blue values to change a shape to a custom color using Set Color R G B.

  • In , drag in Set Color R G B.
  • Change the name in front of .set_color() from sprite to color_circle.
  • Inside the parentheses in your .set_color() command, replace 0, 255, 0 with r, g, b.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)